#ifndef STRUCTS_H
#define STRUCTS_H

#include <QString>
#include <QVector>

enum changesType { INSERT = 1, DELETE = 0 };
enum eventsType { CURSOR_POSITION_CHANGED, TEXT_CHANGED, SELECTION_CHANGED, DROP };
static const unsigned int sizeOfCursorsQueue = 15;
static const unsigned int sizeOfChangesQueue = 20;

//

struct Change
{
    changesType type;
    unsigned int beginInSrc;
    unsigned int endInSrc;
    QString value;
};


struct WebUnit
{
    QVector<WebUnit*> inputUnits;
    QVector<WebUnit*> outputUnits;

};

struct Command
{
    QString textValue;
    unsigned int beginInText;
    unsigned int endInText;
    WebUnit* unit;

};

struct CursorPosition
{
    eventsType type;
    int begin;
    int end;
};
#endif // STRUCTS_H
